#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  logger.py
#       Author @  Huoty
#  Create date @  2015-08-09 16:01:49
#  Description @  
# *************************************************************

import functools

def logger(text):
    def decorator(func):
        @functools.wraps(func)
        def wrapper(*args, **kw):
            print('%s %s():' % (text, func.__name__))
            return func(*args, **kw)
        return wrapper
    return decorator

@logger('DEBUG')
def today():
    print('2015-3-25')


# Script starts from here

today()
print(today.__name__)

